﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityGameFramework.Runtime;

public class Demo2_Controller : MonoBehaviour
{
    public void EnterGame()
    {
        SceneComponent Scene = UnityGameFramework.Runtime.GameEntry.GetComponent<SceneComponent>();
        string[] loadSceneAssetNames = Scene.GetLoadedSceneAssetNames();
        for (int i = 0; i < loadSceneAssetNames.Length; i++)
        {
            Scene.UnloadScene(loadSceneAssetNames[i]);
        }
        Scene.LoadScene("Demo2_Game", this);
    }

    // Use this for initialization
    private void Start()
    {

    }

    // Update is called once per frame
    private void Update()
    {

    }
}
